﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace b7.Models
{
    public class OrdersDetail
    {
        [Key]
        public int OrderDetailId { get; set; }
        [Display(Name = "ma don hang")]
        public int OrdersId { get; set; }

        [Display(Name = "ten san pham")]
        public int SanphamId { get; set; }

        [Display(Name = "gia san pham")]
        public decimal Price { get; set; }

        [Display(Name = "so luong")]
        public int Quantity { get; set; }

        public virtual Orders Orders { get; set; }
        public virtual Sanpham Sanpham { get; set; }
    }
}